package com.asia5b.a5mall.middleware.model.order

import android.text.TextUtils
import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.asia5b.a5mall.middleware.model.shop.AbsGoodsModel
import java.io.Serializable

/**
 * Created by zhangyuncai on 2020/3/9.
 * 订单中打包详细
 */
class ParcelModel : BaseModel() {

    /*后期添加*/
    var checked = false
        get() {
            if (!isCanParcel) {
                return false
            }
            return field
        }
    var isCanParcel = false
        get() {
            return TextUtils.equals("1", storage_status)
        }

    //国内快递号
    val express_sn = ""

    var goods_list: ArrayList<AbsGoodsModel>? = null

    var storage_status = ""// ==1时,表示可以打包
    var id = 0

    //每个实际重量
    var total_weight = ""


}
/*
{
    "express_sn": "ST202003041719",
    "fee_list": [
        {
            "id": 0,
            "order_code": null,
            "status": null,
            "qc_time": 0,
            "goods_id": null,
            "volume_weight": null,
            "net_weight": null,
            "size": null,
            "rk_time": 0,
            "kd_bill_code": null,
            "batch_code": null,
            "main_order_code": null,
            "pack_volume_weight": null,
            "pack_net_weight": null,
            "pack_size": null,
            "new_order_sn": null
        }
    ],
    "goods_list": [
        {
            "item_id": null,
            "seller_id": 34,
            "seller_name": "明成北",
            "goods_id": 7177,
            "sku_id": 22785,
            "sku_sn": "840018-3",
            "cat_id": 665,
            "num": 1,
            "goods_weight": 0.39,
            "original_price": 12.1,
            "original_price_list": {
                "price_rmb": 12.1,
                "price_myr": 7.16,
                "price_thb": 51.86,
                "price_idr": 24125.03,
                "price_vnd": 39893.13,
                "price_php": 86.8
            },
            "purchase_price": 12.1,
            "purchase_price_list": {
                "price_rmb": 12.1,
                "price_myr": 7.16,
                "price_thb": 51.86,
                "price_idr": 24125.03,
                "price_vnd": 39893.13,
                "price_php": 86.8
 */